package com.woniuxy.dao;

import com.woniuxy.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface UserMapper {



    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);


    void uppassword(User user);
      @Insert("insert into user(username,password,renamezz) values(#{username},#{password},#{renamezz})  ")
    void adduser(User user);
     @Select("select * from user where username=#{username}")
    User finduserByUsername(User user);
    @Insert("insert into user_role(uid,rid) values(#{id},2) ")
    void insertUserRole(User user1);
}